{template head}
<script type="text/javascript">
var ajaxparam = {
		'url' : '{SITE_URL}/ajax/index.php'
};

function save(data)
{
	layer.load();
		
	data.m = 'txSH';
	
	var url = '{SITE_URL}ajax/index.php';
	
	var callback = function(data)
	{
		layer.closeAll('loading');
		if(data.sign == 1)
		{
			layer.closeAll();
			
			layer.alert(data.msg,function(){
				window.location = window.location;
			});
		}
		else
		{
			if(data.msg)
			{
				layer.msg(data.msg);
			}
			else
			{
				layer.msg('异常错误');
			}
		}
	};
	makeAjax('post',url,data,callback);
}

function shenhe(id,money)
{
	if(id)
	{
		var html = [];
		
		html.push('<div style="padding: 5px 10px;">提现金额：<input disabled type="text" class="mr15 w200 text" value="'+money+'"></div>');
		html.push('<div style="padding: 5px 10px;"><center>是否确认该笔提现</center></div>');
		
		layer.open({
		  type: 1
		  ,title:'提现审核'
		  ,offset: 'auto' //具体配置参考：offset参数项
		  ,content: html.join('')
		  ,btn: '确认'
		  ,btnAlign: 'c' //按钮居中
		  ,shade:  [0.8, '#393D49'] //不显示遮罩
		  ,yes: function(){
		    var data = {};
		    	data.id = id;
		  		save(data);
		  }
		});
	}
}
</script>

<body>
<div class="wrapper">
	<div class="crumbs"><span style="margin: 0 5px;color: #333;font-size: 14px;">审核管理</span> &gt; <span>提现记录列表</span> </div>
	
	<div class="container_tit clearfix mb20 ft14">
	
	<form action="{SITE_URL}index.php" method="get">
		<input type="hidden" name="a" value="{$parm[a]}" />
        <input type="hidden" name="m" value="{$parm[m]}" />
        <div class="btn_box fl" style="padding-top: 5px;">
        	<span>手机号码</span>
        	<input type="text" id="phone" name="phone" class="mr15 w200 text" value="{$parm['phone']}">
        </div>
        <div class="btn_box fl" style="padding-top: 5px;">
        	<span>用户姓名</span>
        	<input type="text" id="name" name="name" class="mr15 w200 text" value="{$parm['name']}">
        </div>
        <div class="choose fl mr15" style="padding-top: 5px;">
        	<span>提现方式</span>
            <select class="select w150" name="type">
            	<option value="">请选择</option>
            	{loop $TX_FS $k $v}
            	<option {if $parm['type']==$k}selected{/if} value="{$k}">{$v}</option>
            	{/loop}
            </select>
        </div>
        <div class="btn_box fl" style="padding-top:5px;">
        	<span>申请时间</span>
        	<input type="text" class="w200 text" style="width:200px;" class="text" format='date' name='start' id="start" value="{$parm['start']}" placeholder="请输入日期">
			<span>至</span>
			<input type="text" class="mr15 w200 text" style="width:200px;" class="text" format='date' name='end' id="end" value="{$parm['end']}" placeholder="请输入日期">
       	</div>
        <div class="btn_box fl" style="padding-top: 5px;">
        	<input type="submit" name="submit" class="btnblue mr15" value="搜索">
        </div>
    </form>
    </div>
	
	<!-- list -->
	<table class="table">
		<thead>
			<th width="">ID</th>
			<th width="">手机号</th>
			<th width="">姓名</th>
			<th width="">提现方式</th>
			<th width="">银行卡/支付宝</th>
			<th width="">提现金额</th>
			<th width="">到账金额</th>
			<th width="">申请时间</th>
			<th width="">操作</th>
		</thead>
		<tbody>
		<!--{loop $list $key $one}-->
			<tr>
				<td style="text-align: center;">{$one['id']}</td>
				<td style="text-align: center;">{$one['phone']}</td>
				<td style="text-align: center;">{$one['name']}</td>
				<td style="text-align: center;">{php echo $TX_FS[$one['type']]}</td>
				<td style="text-align: center;">{$one['zhanghao']}</td>
				<td style="text-align: center;">{$one['money']}</td>
				<td style="text-align: center;">{$one['moneyed']}</td>
				<td style="text-align: center;">{php echo time_formart($one['addtime'],2)}</td>
				<td style="text-align: center;">
					{if adminpermission('S','120000','120001')}
					<a href="javascript:;" onclick="shenhe('{$one[id]}','{$one['money']}');" class="btn_set"  title="审核">审核</a>
					{/if}
				</td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
</div>

<!--{php pagenav($pageurl,$page,$pagetotal);}-->
{template foot}